﻿<Page
    x:Class="WellDone.DiscountDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:WellDone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
    <Grid
        x:Name="RootPanel"
        Background="#FF98DEF8"
        Opacity=".75"
        HorizontalAlignment="Stretch"
        VerticalAlignment="Stretch">

        <Grid x:Name="LayoutRoot" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" Width="380" Height="550" >
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <StackPanel Margin="10" Grid.Row="0">
                <TextBlock HorizontalAlignment="Center" Margin="10" FontSize="30" TextWrapping="Wrap" Text="Choose what to discount" VerticalAlignment="Top" Grid.Row="0"/>
                <RadioButton x:Name="rbEntireOrder" GroupName="grpDiscountScope" Content="Entire Order" HorizontalAlignment="Left" FontSize="28" Margin="10"  Padding="3,-6,0,0" VerticalAlignment="Top" Grid.Row="0" />
                <RadioButton x:Name="rbSelectedItems" GroupName="grpDiscountScope" Content="Selected Items" HorizontalAlignment="Left" FontSize="28" Margin="10" Padding="3,-6,0,0" VerticalAlignment="Top" Grid.Row="0" />
            </StackPanel>
            <StackPanel Margin="10" Grid.Row="1">
                <TextBlock HorizontalAlignment="Center" Margin="10" FontSize="30" TextWrapping="Wrap" Text="Choose discount type" VerticalAlignment="Top" Grid.Row="1"/>
                <RadioButton x:Name="rbDollarAmt" GroupName="grpDiscountType" Content="Dollar Amount" HorizontalAlignment="Left" FontSize="28" Margin="10" Padding="3,-6,0,0" VerticalAlignment="Top" Grid.Row="1" />
                <RadioButton x:Name="rbPercent" GroupName="grpDiscountType" Content="Percent" HorizontalAlignment="Left" FontSize="28" Margin="10" Padding="3,-6,0,0" VerticalAlignment="Top" Grid.Row="1" />
            </StackPanel>
            <TextBlock HorizontalAlignment="Left" Margin="20,20" FontSize="30" TextWrapping="Wrap" Text="Enter amount" VerticalAlignment="Top" Grid.Row="2"/>
            <TextBox x:Name="tbAmount" HorizontalAlignment="Right" Margin="0,10,30,0" FontSize="29" Grid.Row="2" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="131" Height="56" SelectionHighlightColor="#FF98DEF8" />
            <Button x:Name="btnOK" Content="OK" Width="120" Height="85" FontSize="28" Margin="30,10" HorizontalAlignment="Left" Grid.Row="3" Click="btnOK_Click" />
            <Button x:Name="btnCancel" Content="Cancel" Width="120" Height="85" Margin="30,10" FontSize="28" HorizontalAlignment="Right" Grid.Row="3" Click="btnCancel_Click" />
        </Grid>
    </Grid>
</Page>
